--[[
	gSpeak
	Author: Adult
]]--

-- server only
if SERVER then
	AddCSLuaFile( "voice_load.lua" )
	AddCSLuaFile( "sh_voice.lua" )
	AddCSLuaFile( "cl_voice.lua" )
	AddCSLuaFile( "voice_gui.lua" )

	include( "sv_voice.lua" )

	MsgC( Color(0,255,0), "gSpeak loaded.")

	-- Materials
	resource.AddFile( "materials/gspeak.vtf" )
	resource.AddFile( "materials/gspeak.vmt" )
	resource.AddFile( "materials/gspeak.png" )

	resource.AddFile( "materials/gspeak-admin.vtf" )
	resource.AddFile( "materials/gspeak-admin.vmt" )
	resource.AddFile( "materials/gspeak-admin.png" )
end

-- client only
if CLIENT then
	include( "cl_voice.lua" )
	include( "voice_gui.lua" )
end

-- shared
include( "sh_voice.lua" )